package com.sh.data.engine.domain.feign;

import com.alibaba.fastjson2.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = "${map.isfd.url}", name = "FeignIsfdModelPage")
public interface FeignIsfdModelPage {
    @GetMapping(value = "/model/list")
    JSONObject getMap(
            @RequestHeader("authorization") String authorization,
            @RequestHeader("clientid") String clientId,
            @RequestParam("modelName") String modelName,
            @RequestParam("modelType") String modelType,
            @RequestParam("businessScenarios") String businessScenarios,
            @RequestParam("orderByColumn") String columnName,
            @RequestParam("isAsc") String isAsc,
            @RequestParam("params[beginCreateTime]") String beginCreateTime,
            @RequestParam("params[endCreateTime]") String endCreateTime,
            @RequestParam("pageNum") Integer pageNum,
            @RequestParam("pageSize") Integer pageSize);
}
